package top.conangao.uaa.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜单表
 * @TableName sys_menu
 */
@TableName(value ="sys_menu")
@Data
public class SysMenu implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 
     */
    @TableField(value = "url")
    private String url;

    /**
     * 父节点路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 绑定的组件
     */
    @TableField(value = "component")
    private String component;

    /**
     * 重定向地址
     */
    @TableField(value = "redirect")
    private String redirect;

    /**
     * 上级菜单
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 菜单名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 
     */
    @TableField(value = "locale")
    private String locale;

    /**
     * 
     */
    @TableField(value = "keep_alive")
    private Integer keepAlive;

    /**
     * 所需权限
     */
    @TableField(value = "authority")
    private String authority;

    /**
     * 菜单类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 排序号
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 所属租户
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 版本号
     */
    @TableField(value = "version")
    private Integer version;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 删除标记
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}